//
//  NoLoginTableCell.m
//  滴滴快拍
//
//  Created by dllo on 16/5/19.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "NoLoginTableCell.h"

@implementation NoLoginTableCell

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/


- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self createView];
    }
    return self;

}

- (void)createView {
    self.backgroundColor = [UIColor whiteColor];
//    self.contentView.backgroundColor = [UIColor clearColor];
    
    self.picImageView = [[BaseImageView alloc] init];
    [self.contentView addSubview:self.picImageView];
    
    self.titleLabel = [[BaseLabel alloc] init];
    [self.contentView addSubview:self.titleLabel];
    
    self.contentLabel = [[BaseLabel alloc] init];
    [self.contentView addSubview:self.contentLabel];
    
    self.goImageView = [[BaseImageView alloc] init];
    [self.contentView addSubview:self.goImageView];
    
}

- (void)layoutSubviews {
    [super layoutSubviews];
    self.picImageView.frame = CGRectMake(20, 20, 40, 40);
    self.picImageView.layer.masksToBounds = YES;
    self.picImageView.layer.cornerRadius = 20;
    
    self.titleLabel.frame = CGRectMake(70, 15, 100, 20);
    self.contentLabel.frame = CGRectMake(70, 40, 200, 20);
    self.contentLabel.textColor = [UIColor colorWithRed:146 / 255.0 green:146 / 255.0 blue:146 / 255.0 alpha:1];
    self.contentLabel.font = [UIFont systemFontOfSize:13];
    
    
    self.goImageView.frame = CGRectMake(SCREEN_WIDTH - 30, 30, 20, 20);
    

}




@end
